import * as React from "react";
import Home from "./views/home/index";
import Sponsor from "./views/sponsor/index";
import TabMenu from "./components/TabMenu/index";

export default class Page extends React.Component {
  state = {
    index: 0,
    routes: [{ key: "home", title: "首页" }, { key: "sponsor", title: "发起" }]
  };

  render() {
    const sceneMap = {
      home: Home,
      sponsor: Sponsor
    };
    return (
      <TabMenu
        navigationState={this.state}
        tabBarPosition="bottom"
        sceneMap={sceneMap}
      />
    );
  }
}
